<template>
  <div class="no-permission-container">
    <!-- 主要内容区 -->
    <main class="main-content">
      <div class="permission-card">
        <!-- 锁图标 -->
        <div class="lock-icon">
          <i class="el-icon-lock"></i>
        </div>
        
        <!-- 提示信息 -->
        <h1 class="title">您暂时没有任何权限</h1>
        <p class="description">
          抱歉，您当前的账号没有访问系统的权限。<br>
          请联系管理员获取相应权限后再试。
        </p>
        
        <!-- 操作按钮 -->
        <div class="action-buttons">
          <el-button type="primary" @click="handleContactAdmin">
            <i class="el-icon-phone"></i> 联系管理员
          </el-button>
          <el-button @click="handleRefresh">
            <i class="el-icon-refresh"></i> 刷新页面
          </el-button>
        </div>
      </div>
    </main>

    <!-- 页脚 -->
    <footer class="footer">
      <p>© 2023 系统管理平台 版权所有</p>
    </footer>
  </div>
</template>

<script>
export default {
  name: 'NoPermission',
  data() {
    return {
      userInfo: null
    }
  },
  created() {

  },
  methods: {
   
    
    // 联系管理员
    handleContactAdmin() {
      this.$message.info('管理员联系方式：admin@example.com');
    },
    
    // 刷新页面
    handleRefresh() {
      window.location.reload();
    },
    
  
  }
}
</script>

<style scoped>
.no-permission-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f5f7fa;
}

/* 导航栏样式 */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 60px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
  display: flex;
  align-items: center;
}

.logo .el-icon-shield {
  font-size: 24px;
  color: #409eff;
  margin-right: 10px;
}

.system-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.user-info {
  display: flex;
  align-items: center;
}

.username {
  margin-right: 15px;
  color: #666;
}

/* 主要内容区样式 */
.main-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.permission-card {
  width: 100%;
  max-width: 500px;
  padding: 40px 30px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.lock-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: #f0f7ff;
}

.lock-icon .el-icon-lock {
  font-size: 50px;
  color: #409eff;
}

.title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.description {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 30px;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* 页脚样式 */
.footer {
  padding: 15px 0;
  text-align: center;
  color: #999;
  font-size: 14px;
  border-top: 1px solid #eee;
}
</style>
